﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HolidayManager.aspx.cs" Theme="admin_skin" Inherits="Admin_Holiday_HolidayManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>节假日管理</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table style="width: 650px">
            <tr>
                <td colspan="5">
                    节假日周期定义</td>
            </tr>
            <tr>
                <td colspan="5">
                    年&nbsp; 份 :<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True" 
                        SkinID="dropdownlistSkin" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                    </asp:DropDownList><asp:LinkButton ID="lbtnAddHoliday" runat="server" OnClick="lbtnAddHoliday_Click" >添加节假日</asp:LinkButton></td>
            </tr>
            <tr>
                <td colspan="5" style="width: 650px">
                    <asp:GridView ID="gdvHoliday" runat="server" AutoGenerateColumns="False" DataKeyNames="HolidayId"
                        SkinID="gridviewSkin" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="HolidayId" HeaderText="节假日id" Visible="False" />
                            <asp:BoundField DataField="HolidayYear" HeaderText="年份" />
                            <asp:BoundField DataField="HolidayName" HeaderText="节假日名称" />
                            <asp:BoundField DataField="HolidayStartDay" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:BoundField DataField="HolidayEndDay" HeaderText="结束时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:Button ID="btnHolidayDelete" runat="server" 
                                        Text="删除" OnClientClick="return confirm('确认要删除吗？');" SkinID="buttonSkin" OnClick="btnHolidayDelete_Click" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="5" style="width: 650px">
                    <hr />
                    </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
